package cn.cs.service;

import cn.cs.common.Dto;
import cn.cs.common.Page;
import cn.cs.pojo.RepairUser;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface RepairUserService {
    public Dto doLogin(HttpServletRequest request);

    public Dto register(HttpServletRequest request) throws Exception;

    public Dto updateRepUser(HttpServletRequest request) throws Exception;

    public Dto checkPhone(HttpServletRequest request);

    public Dto showFaultType(HttpServletRequest request);

    public Dto getMyInfo(HttpServletRequest request);

    public Dto changeWorkState(HttpServletRequest request, String state) throws Exception;

    public Dto updateRepUserPhone(HttpServletRequest request);

    public Dto getMypriLci(HttpServletRequest request);

    public Dto complaintInfo(HttpServletRequest request);

    public Dto myComplaint(HttpServletRequest request);

    public Dto updateCertificateImgs(HttpServletRequest request) throws Exception;

    public Dto getPolicy(HttpServletRequest request);

    public Dto getMyEarnings(HttpServletRequest request);

    public Dto getCountMyEarnings(HttpServletRequest request) throws Exception;

    public Dto appSettlement(HttpServletRequest request) throws Exception;

    public Dto uploadImage(HttpServletRequest request);

    public Dto appSetMoney(HttpServletRequest request) throws Exception;

    public List<Map<String,Object>> getCertificateImgByUserId(String rep_user_id);

    public List<Map<String,Object>> getCertificateListByFaultId(String fault_id)throws Exception ;

    public Dto registerWx(HttpServletRequest request)throws Exception;

    public void modifyRepairUser(RepairUser repairUser) throws Exception;

    public List<Map<String,Object>> getRepairUserArea(String id);

    public int insertCertificateList(Map<String, Object> param);

    public int delCertificateImg(String id);

    public Page<RepairUser> queryRepairUserPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize);

    public Page<Map<String, Object>> getRepairUserDayByMap(Map<String,Object> param, Integer pageNo, Integer pageSize)throws Exception ;

    public Dto getRepairUserByUserId(HttpServletRequest request) throws Exception;

    public Map<String, Object> getRepairUserByUserId(String userId) throws Exception;
}
